|
PHY ADD VEHICLE BODY
Add a new body part to the vehicle to form its chassis.
PHY ADD VEHICLE BODY ID, sizeX#, sizeY#, sizez#, origin x#, origin y#, origin z#
ID
Integer
identification number of the vehicle
sizeX#
Float
size of the part on the X axis
sizeY#
Float
size of the part on the Y axis
sizez#
Float
size of the part on the Z axis
origin x#
Float
origin of the part on the X axis
origin y#
Float
origin of the part on the Y axis
origin z#
Float
origin of the part on the Z axis
When a body part is added to form the chassis of the car it is represented as a rigid body box. It may often be useful to enable the remote debugger using the command phy enable debug so you can see how the car is represented in the simulation.
When adding a vehicle body consider the size of the box that is going to represent the vehicle and its origin. These can be controlled with the parameters passed into the command.
It is possible to add multiple body parts to a vehicle by continually calling phy add vehicle body and adjusting the origin of the part to alter its location.
No example code is provided for this command
|